package com.tabuleiro.web.pages;

import org.apache.tapestry5.annotations.Persist;
import org.apache.tapestry5.annotations.Property;
import org.apache.tapestry5.ioc.Messages;
import org.apache.tapestry5.ioc.annotations.Inject;

import com.tabuleiro.web.annotations.AnonymousAccess;
import com.tabuleiro.web.services.Authenticator;

@AnonymousAccess
public class Index {

	@Inject
    private Authenticator authenticator;
	
	@Persist("flash")
	@Property
    private String flashmessage;
	
	@Property
	private String usuario;
	
	@Property
	private String senha;
	
	
	@Inject
    private Messages messages;
	
	public void onActivate(String message) {
		flashmessage = message;
	}
	
	
}
